<?php
(!defined('IN_TOA') || !defined('IN_ADMIN')) && exit('Access Denied!');
/*
	[天生创想] (C)2008-2011 515158 Inc.
	This is NOT a freeware, use is subject to license terms
    URL:http://www.515158.com/
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link href="themes01/default/clientPublic.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/codeMgr.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/tabSwitch.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="themes01/default/pstyle.css">
<script type="text/javascript" src="javascripts01/jquery.js"></script>
<script type="text/javascript" src="javascripts01/common.js"></script>
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body>
<div id="Holder">
<div id="MainPage">

 
 
<div id="Subnav">
 
<ul>
<?php
$nums=21;
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."menu where fatherid='3' and menutype='0' ORDER BY menunum Asc");
	while ($row = $db->fetch_array($query)) {
?>
<li><a href="<?=$row[menuurl]?>"  <? if($nums==$row[menuid]){?> id="Subnavb"<? }?>><?=$row[menuname]?></a></li>
<?php
	}
?>


</ul>
</div>
<form name="save" method="post" action="?ac=edit&do=save&fileurl=blog" onSubmit="return save_blog()">
	<input type="hidden" name="savetype" value="edit" />
	<input type="hidden" name="id" value="<?=$blog['id']?>" />
<table class="TableTop" width="90%">
   <tr>
      <td class="left"></td>
      <td class="center"><?=$knowledge['title']?></td>
      <td class="right"></td>
   </tr>
</table>
 <table class="TableBlock no-top-border" width="90%">
    <tr>
      <td class="TableData" style="padding-left:20px;">
      <a class="detail" href="<?php if($knowledge['uid']==$_USER->id){?>admin.php?ac=edit&fileurl=blog&do=edit&id=<?=$knowledge['id']?><?php }else{echo "#"; } ?>">
                               
                                编辑
                            </a>
                            <a onClick="deleteDaily();" class="detail" href="<?php if($knowledge['uid']==$_USER->id){?>admin.php?ac=index&fileurl=blog&do=htcdelete&id=<?=$knowledge['id']?><?php }else{echo "#"; } ?>">
                               |
                                删除
                            </a>  &nbsp;&nbsp;&nbsp;&nbsp;发布时间: <?=$knowledge['date']?>	</td>
    </tr>


 <tr>
      <td class="TableData" style="padding:20px 20px 20px 20px;">
     <?=$knowledge['content']?>	</td>
    </tr>

  </table>
</form>
</div>
</div>
 
<script language="javascript" src="javascripts01/tangram-1.3.1.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/elf.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/union.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/codeMgr.js" type="text/javascript"></script>
 
</body>
</html>
